package com.frxuexi.park2305.fragment

import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.frxuexi.lib_base.mvi.BaseViewFragment
import com.frxuexi.lib_base.utils.ArouterManager
import com.frxuexi.lib_base.utils.ArouterService
import com.frxuexi.park2305.R
import com.frxuexi.park2305.databinding.FragmentServiceBinding
import dagger.hilt.android.AndroidEntryPoint


class ServiceFragment : BaseViewFragment<FragmentServiceBinding>() {
    override val binding: FragmentServiceBinding by lazy { FragmentServiceBinding.inflate(layoutInflater) }

    override fun initView() {
        binding.servicePark.setOnClickListener {
            ArouterManager.nav(requireContext(),"/park/ParkActivity")
        }

        binding.serviceParkpre.setOnClickListener {
            ArouterManager.nav(requireContext(),"/park/ParkPreListActivity")
        }

        binding.serviceRepair.setOnClickListener {
            ArouterManager.nav(requireContext(),"/repair/RepairActivity")
        }

        binding.serviceVisit.setOnClickListener {
            ArouterManager.nav(requireContext(),"/visit/VisitActivity")
        }

        binding.serviceNotice.setOnClickListener {
            ArouterManager.nav(requireContext(),"/app/NoticeActivity")
        }

        binding.serviceNews.setOnClickListener {
            ArouterManager.nav(requireContext(),"/app/NewsActivity")
        }

        binding.serviceSign.setOnClickListener {
//            ArouterManager.nav(requireContext(),"/sign/SignActivity")
            ArouterManager.nav(requireContext(),"/sign/SignRoomActivity")
        }
    }

}